package com.project.bean;

/**
 * 采购车/销售车实体类
 *
 */
public class ShopBean {
	/**商品对象*/
	private ProductBean product;
	/**购买/销售数量*/
	private int number;
	/**采购/销售价*/
	private int price;
	public ShopBean(int price, int number,String productId) {
		super();
		this.product = new ProductBean();
		this.product.setId(productId);
		this.number = number;
		this.price = price;
	}
	public ShopBean(String productId,int price, int number) {
		super();
		this.product = new ProductBean();
		this.product.setId(productId);
		this.price = price;
		this.number = number;
	}
	public ShopBean() {
		super();
		// TODO Auto-generated constructor stub
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public ProductBean getProduct() {
		return product;
	}
	public void setProduct(ProductBean product) {
		this.product = product;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}

	@Override
	public String toString() {
		return "ProductNumberBean{" +
				"product=" + product +
				", number=" + number +
				", price=" + price +
				'}';
	}
}
